<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>甲乙点搜网-商家点评,商家搜索,消费后点评,优惠信息</title>
<link rel="stylesheet" href="css/layout.css" type="text/css" />
<link rel="stylesheet" href="css/return.css" type="text/css" />
<script type="text/javascript" src="js/jquery_1.7.1.js"></script>
<script type="text/javascript" src="js/more_city.js"></script>
<script type="text/javascript" src="js/sel_content_detail.js"></script>
<script type="text/javascript" src="js/sel_faci.js"></script>
</head>

<body>
<div id="wrap">
<div id="reg">
  <div id="top_nav" style=" width: 980px; margin-left:auto; margin-right:auto; text-align:right;"/>
    <span><a href="http://127.0.0.1:8005/user_login.php">[登录]</a></span>
  
    <span><a href="http://127.0.0.1:8005/user_reg.php">[免费注册]</a></span>
  </div>
</div>
<div id="container">
  <div id="header">
    
	
	<div class="sep"></div>
	
	<div id="logo">
	  <img src="images/jiayi_logo.jpg" width="200px" height="75px" alt="logo" />
	</div>
	
	<div id="city_change">
	  <div id="city_pic">
	    <img src="images/shanghai.jpg" width="120px" height="70px" />
      </div>
	  <div id="city_box">
	    <br /><span style="font-size:20px; font-weight:bold; margin-left:20px;">上海</span><br />
		<span id="change" style="margin-left:60px;padding-right:12px;background:url(images/g.header.v201203221438.png) no-repeat right -480px ;">
		切换城市
		  <!--更多城市-->
		  <div id="more_city"><a target="_blank" href="http://www.baidu.com/s?wd=北京">北京</a><br />
	                          <a target="_blank" href="http://www.baidu.com/s?wd=大连">大连</a>
	      </div>
		</span>
	  </div>  
	</div>
	
	<div id="search">
	  <form action="http://www.baidu.com" method="get" target="_blank">
	    <input id="input" type="text" name="v" />
		<input type="hidden" name="act" value="search" />
		<input id="button" type="submit" name="submit" value=""/>
	  
	  </form>
	</div>
	
	<div class="sep"></div>
	
	<div id="nav">
	  <div id="nav_left"></div>
	  
	  <div id="nav_mid">
	    <ul>
	      <li style="border-left:1px solid #0C75A0" class="selected"><a href="#">商家</a></li>
		  <li><a href="#" >待定</a></li>
		  <li><a href="#">待定</a></li>
		  <li><a href="#">待定</a></li>
		  <li><a href="#">待定</a></li>
	    </ul>
	  </div>
	  
	  <div id="nav_right"></div>
	</div>
	
	<div id="nav_shade"></div>
  </div>
  
  <div class="sep"></div>
  
  <div id="main">
    <div id="left">
	  <div class="sel">
	    <div class="title">
		  <span>按行业</span>
		</div>
		<div class="content">
		  <ul>
		    <li><div class="no_border"><div class="word">美食</div><div class="arrow">></div></div>
			  <div class="content_detail"><a target="_blank" href="http://127.0.0.1/return.php?cityId=1&industryId=108&page=1">湘菜</a></div>
			</li>
			<li><div class="no_border"><div class="word">医疗</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">酒店</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">教育</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">婚嫁</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">休闲</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">母婴</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">健身</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">汽车</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">更多</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
		  </ul>
		</div>
	  </div> <!--sel结束-->
	  
	  <div class="sep">
	  </div>
	  
	  <div class="sel">
	    <div class="title">
		  <span>按商品分类</span>
		</div>
		<div class="content">
		  <ul>
		    <li><div class="no_border"><div class="word">手机数码</div><div class="arrow">></div></div>
			  <div class="content_detail"><a target="_blank" href="http://www.baidu.com/s?wd=iPhone4S">iPhone4S</a></div>
			</li>
			<li><div class="no_border"><div class="word">电脑办公</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">家用电器</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">运动器材</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">母婴、玩具</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">乐器</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">家装、厨具</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">化妆护理</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">服饰鞋帽</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
			<li><div class="no_border"><div class="word">更多</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li>
		  </ul>
		</div>
	  </div> <!--sel结束-->
	</div><!--left结束-->
	
	<div id="mid">
	  <div id="mid_top">
	    <div id="loc_choice">
		已选服务：
		<span>湘菜</span>
		</div>
		
		<div id="party_choice">
		已选地点：
		<span>上海</span>
		</div>
		
		<div id="filter">

		</div>
		
		<div id="sort_type">
		  <span>排序方式：</span>
		  <ul>
		    <li>默认</li>
		    <li>价格</li>
			<li>刷新时间</li>
			<li>距您最近</li>
		  </ul>
		</div>

	  </div>
	  
	  <div class="sep">
	  </div>
	  
	  <div id="party_info">
	    <?php
		      require_once(dirname(__FILE__)."/../include/httpclient.php");

			  //接收到点击搜索的请求，走这个分支
			  $data = array();//用于组织serviceurl的参数，相当于子弹夹
			  //位置参数的判断。
			  if( isset($_GET['cityId']) )
			  {
				  $data['cityId'] = $_GET['cityId'];
			  }
			  else if( isset($_GET['businessAreaId']) )
			  {
				  $data['businessAreaId'] = $_GET['businessAreaId'];
			  }
			  else if( isset($_GET['district_county_Id']) )
			  {
				  $data['district_county_Id'] = $_GET['district_county_Id'];
			  }
			  else
			  {
				  echo '位置参数 is wrong, exit!';
				  exit();
			  }

			  //分类或行业参数，也就是服务参数，该参数可以不存在
			  if( isset($_GET['catId']) )
			  {
				  $data['catId'] = $_GET['catId'];
			  }
			  else if( isset($_GET['industryId']) )
			  {
				  $data['industryId'] = $_GET['industryId'];
			  }

			  //页码参数
			  if( isset($_GET['page']) )
			  {
				  $data['page'] = $_GET['page'];
			  }
			  else
			  {
				  echo '缺少页码参数 is wrong, exit!';
				  exit();
			  }

			  $json_data = call_serviceurl(14, $data);
			  $obj = json_decode(($json_data));
		?>

		<?php
		      for($i=0; isset($obj[0][$i]); $i++)
			  {
				  $one_info = '<div class="one_info">
				  <div class="pic">
					<img src="'.$obj[0][$i]->partyLogo.'"  style="width:116px; height:102px"/>
				  </div>
				  <div class="info_list">
					<ul>'.
					  '<li>名称：<span>'.$obj[0][$i]->partyName.'</span><span style="float:right;margin-right:50px;"><a target="_blank" href="'.$obj[0][$i]->pageUrl.'">商家主页Go>></a></span></li>'.
					  '<li>地址：<span>'.$obj[0][$i]->facility.'</span></li>'.
					  '<li>联系方式：<span>'.$obj[0][$i]->mobilePhone.'，'.$obj[0][$i]->fixedPhone.'</span></li>'.
					  '<li>最新刷新：<span>'.$obj[0][$i]->refreshDateTime.'</span></li>'.
					  '<li>最新留言：<span>'.$obj[0][$i]->message.'</span></li>'.
				   '</ul>
				  </div>	
				</div><!--one_info结束-->	
				<div class="sep"></div>';

				echo $one_info;
			  }
		?>
	    <div class="one_info">
		  <div class="pic">
		    <img src="images/thumb.jpg"  style="width:116px; height:102px"/>
		  </div>
		  <div class="info_list">
		    <ul>
			  <li>名称：<span>XXXX望湘园(第一百货店)</span><span style="margin-left:150px;">商家主页Go>></span></li>
			  <li>地址：<span>黄浦区南京东路830号第一百货新楼6楼</span></li>
			  <li>联系方式：<span>021-63619877</span></li>
			  <li>最新刷新：<span>2012年4月9日11:35</span></li>
			  <li>最新留言：<span>亲们！4月10日至4月13日，会员优惠8折起，赶紧来办会员卡吧，亲！</span></li>
			</ul>
		  </div>	
		</div><!--one_info结束-->	
		<div class="sep"></div>	
		
		<div class="one_info">
		  <div class="pic">
		    <img src="images/thumb.jpg"  style="width:116px; height:102px"/>
		  </div>
		  <div class="info_list">
		    <ul>
			  <li>名称：<span>望湘园(第一百货店)</span><span style="margin-left:150px;">商家主页Go>></span></li>
			  <li>地址：<span>黄浦区南京东路830号第一百货新楼6楼</span></li>
			  <li>联系方式：<span>021-63619877</span></li>
			  <li>最新刷新：<span>2012年4月9日11:35</span></li>
			  <li>最新留言：<span>亲们！4月10日至4月13日，会员优惠8折起，赶紧来办会员卡吧，亲！</span></li>
			</ul>
		  </div>	
		</div><!--one_info结束-->	
		<div class="sep"></div>
		
		<div class="one_info">
		  <div class="pic">
		    <img src="images/thumb.jpg"  style="width:116px; height:102px"/>
		  </div>
		  <div class="info_list">
		    <ul>
			  <li>名称：<span>望湘园(第一百货店)</span><span style="margin-left:150px;">商家主页Go>></span></li>
			  <li>地址：<span>黄浦区南京东路830号第一百货新楼6楼</span></li>
			  <li>联系方式：<span>021-63619877</span></li>
			  <li>最新刷新：<span>2012年4月9日11:35</span></li>
			  <li>最新留言：<span>亲们！4月10日至4月13日，会员优惠8折起，赶紧来办会员卡吧，亲！</span></li>
			</ul>
		  </div>	
		</div><!--one_info结束-->	
		<div class="sep"></div>
		
		<div class="one_info">
		  <div class="pic">
		    <img src="images/thumb.jpg"  style="width:116px; height:102px"/>
		  </div>
		  <div class="info_list">
		    <ul>
			  <li>名称：<span>望湘园(第一百货店)</span><span style="margin-left:150px;">商家主页Go>></span></li>
			  <li>地址：<span>黄浦区南京东路830号第一百货新楼6楼</span></li>
			  <li>联系方式：<span>021-63619877</span></li>
			  <li>最新刷新：<span>2012年4月9日11:35</span></li>
			  <li>最新留言：<span>亲们！4月10日至4月13日，会员优惠8折起，赶紧来办会员卡吧，亲！</span></li>
			</ul>
		  </div>	
		</div><!--one_info结束-->	
		<div class="sep"></div>
		
		<div class="one_info">
		  <div class="pic">
		    <img src="images/thumb.jpg"  style="width:116px; height:102px"/>
		  </div>
		  <div class="info_list">
		    <ul>
			  <li>名称：<span>望湘园(第一百货店)</span><span style="margin-left:150px;">商家主页Go>></span></li>
			  <li>地址：<span>黄浦区南京东路830号第一百货新楼6楼</span></li>
			  <li>联系方式：<span>021-63619877</span></li>
			  <li>最新刷新：<span>2012年4月9日11:35</span></li>
			  <li>最新留言：<span>亲们！4月10日至4月13日，会员优惠8折起，赶紧来办会员卡吧，亲！</span></li>
			</ul>
		  </div>	
		</div><!--one_info结束-->	
		<div class="sep"></div>
		
		<div class="one_info">
		  <div class="pic">
		    <img src="images/thumb.jpg"  style="width:116px; height:102px"/>
		  </div>
		  <div class="info_list">
		    <ul>
			  <li>名称：<span>望湘园(第一百货店)</span><span style="margin-left:150px;">商家主页Go>></span></li>
			  <li>地址：<span>黄浦区南京东路830号第一百货新楼6楼</span></li>
			  <li>联系方式：<span>021-63619877</span></li>
			  <li>最新刷新：<span>2012年4月9日11:35</span></li>
			  <li>最新留言：<span>亲们！4月10日至4月13日，会员优惠8折起，赶紧来办会员卡吧，亲！</span></li>
			</ul>
		  </div>	
		</div><!--one_info结束-->	
		<div class="sep"></div>
				
	  </div><!--party_info结束-->
	  
	  <div class="sep"></div>
	  
	  <div id="page_num">
	    <ul>
		  <li>首页</li>
		  <li><上一页</li>
		  <li class="number"><span style="display:block; width:100%; background:#FF9900;"><strong>1</strong></span></li>
		  <li class="number">2</li>
		  <li class="number">3</li>
		  <li class="number">4</li>
		  <li class="number">5</li>
		  <li class="number">6</li>
		  <li class="number">7</li>
		  <li class="number">8</li>
		  <li>下一页></li>
		  <li>尾页</li>
		</ul>
	  
	  </div>
	  
	</div><!--mid结束-->
	
  <div id="right">
	  <div class="sel">
	    <div class="title">
		  <ul>
		    <li id="busi" style="border-right: 1px solid #F60;font-weight:bold; color:white">选商业区</li>
			<li id="dist" style="font-weight:bold; color:#C03">选行政区</li>
		  </ul>
		</div>
		<div class="faci_content">
		  <ul id="busi_area" >
		    <li><a href="http://www.baidu.com/s?wd=陆家嘴" target="_blank">陆家嘴(112)</a>
			</li>
			<li>五角场(112)
			</li>
			<li>人民公园(112)
			</li>
			<li>南京西路(112)
			</li>
			<li>南京东路(112)
			</li>
			<li>世纪公园(112)
			</li>
			<li>八佰伴(112)
			</li>
			<li>徐家汇(112)
			</li>
			<li>静安寺(112)
			</li>
			<li>金桥(112)
			</li>
		  </ul>
		  <ul id="district_area" style="display:none;">
		    <li>卢湾区(112)
			</li>
			<li>徐汇区(112)
			</li>
			<li>静安区(112)
			</li>
			<li>长宁区(112)
			</li>
			<li>闵行区(112)
			</li>
			<li>浦东新区(112)
			</li>
			<li>黄浦区(112)
			</li>
			<li>普陀区(112)
			</li>
			<li>闸北区(112)
			</li>
			<li>虹口区(112)
			</li>
			<li>杨浦区(112)
			</li>
			<li>宝山区(112)
			</li>
			<li>松江区(112)
			</li>
			<li>嘉定区(112)
			</li>
			<li>青浦区(112)
			</li>
			<li>近郊(112)
			</li>
		  </ul>
		</div>
	  </div>

	  <div class="sep">
	  </div>	  
	  
	  <div class="sel">
	  </div>
	</div>
  </div>
  
  <div id="footer">
    <ul>
		<li><a href="#" target=_blank>关于我们</a>|</li>
		<li><a href="#" target=_blank>联系我们</a>|</li>
		<li><a href="#" target=_blank>广告服务</a>|</li>
		<li><a href="#" target=_blank>人才招聘</a>|</li>
		<li><a href="#" target=_blank>友情链接</a></li>
    </ul>
	<br />
    Copyright(c) 2012 甲乙点搜网 All Rights Reserved
  </div>
</div>


</div>
</body>
</html>